package com.hrt.demo.wsb.table.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.hrt.bean.UserVO;

@Controller
@RequestMapping("manage/demo/table")
public class TableSubmitController {

	
	@RequestMapping(value = "/list")
	public ModelAndView list(){
		ModelAndView model = new ModelAndView();
		
		model.setViewName("manage/demo/table/index");
		return model;
}
	
	
	@RequestMapping(value = "/save",method=RequestMethod.POST)
	public ModelAndView save(@ModelAttribute("tabFrm")UserVO vo){
		ModelAndView model = new ModelAndView();
		vo.getUsers();
		model.setViewName("manage/demo/table/index");
		return model;
}


	
}
